package com.xiyu.service.vo.unit.worker;

import com.xiyu.service.vo.unit.worker.baseVO.UnitWorkerBase;
import com.xiyu.service.vo.unit.unit.baseVO.UnitUnitBase;
import com.xiyu.service.vo.unit.rank.baseVO.UnitRankBase;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.Valid;
import com.xiyu.service.enums.common.CommonStatusEnum;
import com.xiyu.service.framework.validation.InEnum;
import org.springframework.format.annotation.DateTimeFormat;
import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import java.time.LocalDateTime;

@Schema(description = "分页查询单位职工")
@Data
public class WorkerPageQueryOutput extends UnitWorkerBase {

    @Schema(description = "职级")
    @Valid
    private rank rank;

    @Schema(description = "单位职工主键ID")
    private Long id;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTime;

    @Schema(description = "办公单位")
    @Valid
    private unit unit;

    @Schema(description = "更新时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime updateTime;

    @Schema(description = "职级")
    @Data
    public static class rank extends UnitRankBase {
    }

    @Schema(description = "办公单位")
    @Data
    public static class unit extends UnitUnitBase {
    }
}